package tech.youai.ppping;

import com.binarywang.spring.starter.wxjava.cp.properties.WxCpProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import tech.youai.nav.SimpleUrlBuilderFactory;
import tech.youai.nav.UrlBuilderFactory;

import java.util.Map;

@SpringBootApplication
public class PpPingApplication implements CommandLineRunner {

    @Autowired
    private AlertManager alertManager;

    public static void main(String[] args) {
        SpringApplication.run(PpPingApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        alertManager.run();
    }

}
